package advertising

import com.typesafe.config.{Config, ConfigFactory}

//  .--,       .--,
// ( (  \.---./  ) )
//  '.__/o   o\__.'
//     {=  ^  =}
//      >  -  <
//     /       \
//    //       \\
//   //|   .   |\\
//   "'\       /'"_.-~^`'-.
//      \  _  /--'         `
//    ___)( )(___
//   (((__) (__)))    高山仰止, 景行行止; 虽不能至, 心向往之.
//                    High mountains, scenery. Although not to, the heart yearns for it. 
object AppParams {

  private lazy val config: Config = ConfigFactory.load()

  val redisHost = config.getString("redis.host")
  val redisPort = config.getInt("redis.port")
  val redisMinIdle = config.getInt("redis.minIdle")
  val redisMaxIdle = config.getInt("redis.maxIdle")
  val redisMaxTotal = config.getInt("redis.maxTotal")
  val redisMaxWaitMillis = config.getLong("redis.maxWaitMillis")

  val ak = config.getString("baidu.ak")

  val hbaseZookeeperQuorumCluster = config.getString("hbase.zookeeper.quorum.cluster")
  val hbaseZookeeperQuorumPort = config.getInt("hbase.zookeeper.quorum.port")

  val hbaseTagsTableName = config.getString("hbase.tags.table.name")
  val hbaseTagsTableFamily = config.getString("hbase.tags.table.family")
  val hbaseTagsTableFamilyQualifier = config.getString("hbase.tags.table.family.qualifier")

}
